<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
</head>

<body  style="font-family:Arial, Helvetica, sans-serif" >
<h1>Customer Picking Up Wizard <br />
  Step 2</h1>
<p>1) Customer Satisfaction <br />
</p>
<table width="800" border="1" cellspacing="0" cellpadding="10">
  <tr>
    <th align="left" bgcolor="#33CC33" scope="col">Please ask customer checked all the condition of the phone /device<br /></th>
    <th align="left" bgcolor="#33CC33" scope="col">Done
      <input type="checkbox" name="checkbox" id="checkbox" />
    <label for="checkbox"></label></th>
  </tr>
  <tr>
    <th align="left" bgcolor="#33CC33" scope="col">Please ask customer to sign the pickup signature</th>
    <th align="left" bgcolor="#33CC33" scope="col">Done
    <input type="checkbox" name="checkbox2" id="checkbox2" /></th>
  </tr>
</table>
<p style="font-size:12px;">If Customer are not happy with your service , please <a href="#">click here</a><br />
</p>
2) Inform the Customer Warranty Period and Extended Warranty <br />
  <br />

<form id="form1" name="form1" method="post" action="/repaircenter/device-pickup-warranty/idjob/<?php echo $this->idJob?>/shop/<?php echo $this->shopCode?>/idrc/<?php echo $this->idRcenter?>">
  <table width="800" border="1" cellspacing="0" cellpadding="10">
  <tr>
    <th colspan="2" scope="col">Please Read To The Customer </th>
    </tr>
    <tr>
    <td colspan="2"><div style="padding:5px; border: #960 2px solid; background-color:#FF9;">
      <p><strong>Please ready to the customer</strong><br />
        <br />
        &quot;There is limited hardware warranty for the service, the detail will be print out for you now, please have a look&quot;<br />
        &quot;There is no any warranty for software only service, we only provide warranty for hardware&quot; <br />
        &quot;Water Damage is 30 days warranty only&quot; <br />
      </p>
    </div></td>
  </tr>
    <tr>
      <td colspan="2" align="center">The hardware (repair parts) warranty for this JOBID: <?php echo $this->idJob;?> is :</td>
    </tr>
    <tr>
      <td colspan="2" align="center"><label for="select">Warranty Period: <?php echo $this->warrantyPeriod; ?> Days</label></td>
    </tr>
    <tr>
      <td colspan="2" align="center"><label for="select3">Extended Warranty : <?php echo $this->extWarranty; ?> Days </label></td>
    </tr>
    <tr>
      <td colspan="2" align="center"><strong>Prepare the Warranty Paper<br />
        (Please Note Anything you modify here will not be recorded in repair job history, it is for printing purpose only)
      </strong></td>
    </tr>
  <tr>
    <td width="200">The Device is</td>
    <td><label for="device_detail"></label>
    <input name="device_detail" type="text" id="device_detail" style="width:500px;" value="<?php echo $this->deviceDetail?>" readonly="readonly" /></td>
  </tr>
  <tr>
    <td>IMEI/Device ID is</td>
    <td><input name="imei" type="text" id="imei" style="width:500px;" value="<?php echo $this->imei?>" readonly="readonly"/></td>
  </tr>
  <tr>
    <td>Service/Parts Detail is</td>
    <td><input name="service_detail" type="text" id="service_detail" style="width:500px;" value="<?php echo $this->serviceDetail?>" readonly="readonly" /></td>
  </tr>
  <tr>
    <td>We will put Comment:</td>
    <td><textarea name="comment" rows="2" id="comment" style="width:500px; border:#333 solid 1px;"></textarea></td>
  </tr>
  <tr>
    <td colspan="2" align="center"><strong>Choose Warranty Expire Date For Print (MUST CHOOSE ONE)</strong></td>
  </tr>
  <tr>
    <td colspan="2" align="left"><input type="radio" name="warranty_confirm" id="warranty_confirm1" value="<?php echo $this->wyEnd;?>" />
      <label for="warranty_confirm"></label>
      This limited hardware warranty (excluded Water damage )will expire on 12pm of <?php echo $this->wyEnd;?></td>
  </tr>
  <tr>
    <td colspan="2" align="left"><input type="radio" name="warranty_confirm" id="warranty_confirm2" value="<?php echo $this->wrEnd;?>" />      
      Water Damage Warranty will expire on 12 pm of <?php echo $this->wrEnd;?></td>
  </tr>
  </table>
<p><br />
</p>
  <input type="submit" name="btn_print" id="btn_print" value="All Done, Print the Warranty Paper" />
</form>
<p><br />
</p>
</body>
<script type="text/javascript">

function checkSelect(){
	if($("#warranty_confirm1").is(":checked") || $("#warranty_confirm2").is(":checked")  ){
			$("#btn_print").removeAttr("disabled");			
			}
		else{
			$("#btn_print").attr('disabled','disabled');			
			}	
}


$(document).ready(function() {
	checkSelect();	
});

	$("#warranty_confirm1").change(function(){
	checkSelect();
	});

$("#warranty_confirm2").change(function(){
	checkSelect();
	});	



 </script>
</html>
